package com.gitee.huxing.framework.redis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

/**
 * @Description: 缓存容器配置
 * @ProjectName: SpringCloudLearning
 * @Package: com.huxing.framework.redis
 * @ClassName: CacheItemConfig
 * @Author: huxing
 * Date: 2021-05-24
 * Time: 10:41
 */
public class CacheItemConfig implements Serializable {

    private static final long serialVersionUID = -8176647020099585172L;

    /** 缓存容器名称 **/
    private String name;

    /** 缓存失效时间 **/
    private long expiryTimeSecond;

    /** 当缓存存活时间达到此值时，主动刷新缓存 **/
    private long preLoadTimeSecond;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getExpiryTimeSecond() {
        return expiryTimeSecond;
    }

    public void setExpiryTimeSecond(long expiryTimeSecond) {
        this.expiryTimeSecond = expiryTimeSecond;
    }

    public long getPreLoadTimeSecond() {
        return preLoadTimeSecond;
    }

    public void setPreLoadTimeSecond(long preLoadTimeSecond) {
        this.preLoadTimeSecond = preLoadTimeSecond;
    }
}
